package com.zxisl.bean;

/**
 * Created by ade on 2016/10/27.
 */
public class Mail {

    /**
     * 注意 ： 这里的passwd是授权码，如果邮箱是比较早的邮箱则是密码，如果是新注册的则必须是授权码，否则不可获取邮件内容
     * 126,pop3.126.com,pop3,110,paulzms@126.com,a1472589630
     */
    private String server;
    private String host;
    private String protocol;
    private String port;
    private String username;
    private String passwd;
    private String ssl; //1 为true 0 为false

    public void setMail(String[] strEmInfo) {
        setServer(strEmInfo[0]);
        setHost(strEmInfo[1]);
        setProtocol(strEmInfo[2]);
        setPort(strEmInfo[3]);
        setUsername(strEmInfo[4]);
        setPasswd(strEmInfo[5]);
        setSsl(strEmInfo[6]);
    }

    public String getSsl() {
        return ssl;
    }

    public void setSsl(String ssl) {

        this.ssl = ssl;
    }

    public String getHost() {

        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getServer() {

        return server;
    }

    public void setServer(String server) {
        this.server = server;
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPasswd() {
        return passwd;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }
}
